/*
	Basic Shape class that contains a field representing the shape name,
	a toString() method that returns the shape name along with the area
	of the shape, and an abstract area method that sub-classes will
	implement.

	DO NOT MODIFY THIS CLASS

*/

public abstract class Shape
{
	private String _name;

	//can only be called by classes in inheritance hierarchy
	protected Shape(String name)
	{
		_name = name;

	}// end constructor

	//returns area as defined by sub class that implements this method
	public abstract double area();


	public String toString()
	{
		return "Shape Name: " + _name + "\nArea: "
				+ area() + "\n------------------------";

	}//end toString()

	public String getName()
	{

		return _name;
	}


}//end class Shape